.home-container {
    padding: 1rem 1rem 7rem;
    min-height: 100vh;
    box-sizing: border-box;
    background: url("../images/home_bg.png");
    background-size: 100% auto;
    background-repeat: no-repeat;

    .home-top {
        @include flex-center-start();
        padding: 1rem 0;

        .hat-icon {
            width: 3rem;
            height: 3rem;
        }

        .title {
            margin-left: .6rem;
            font-family: "localFont";
            font-size: 2.6rem;
            font-weight: bold;
        }
    }

    .home-total {
        padding: 2rem 1rem 1rem;
        position: relative;

        .sign-in {
            position: absolute;
            @include flex-center-center();
            width: 9rem;
            height: 6rem;
            top: -5rem;
            right: -1rem;
            background: url("../images/home_hat.png");
            background-size: 100% 100%;
            background-repeat: no-repeat;

            .btn {
                padding: .2rem .6rem;
                border-radius: 2rem;
                font-size: 1rem;
                color: #fff;
                border: 1px solid #fff;
            }
        }

        .telegram-iocn {
            position: absolute;
            width: 3rem;
            height: 3rem;
            top: 1rem;
            right: 1rem;

            img {
                width: 100%;
                height: 100%;
            }
        }

        .item-box {
            flex: 1;

            &.diamond-box {
                margin-right: 1rem;
            }

            .item-name {
                @include flex-center-start();
                height: 2rem;
                line-height: 3rem;
                font-size: 1rem;
                color: #797979;

                .r-arrow {
                    width: 1rem;
                    height: 1rem;
                    margin-left: .2rem;
                    line-height: 0;
                }
            }

            .item-content {
                height: 3rem;
                width: 100%;
                @include flex-center-start();
                border-radius: 1.6rem;

                // box-shadow: 0 .1rem .4rem 0 $purpleShadow inset;
                .left-icon {
                    @include flex-center-center();
                    width: 3rem;
                    height: 3rem;

                    img {
                        width: 2.4rem;
                        height: 2.4rem;
                    }
                }

                .num {
                    font-size: 1.8rem;

                    color: #fff;

                    &.bold {
                        margin-left: .4rem;
                        font-size: 2.4rem;
                        font-weight: bold;
                    }
                }

                .unit {
                    @include flex-center-center();
                    color: #a6a6a7;
                    font-size: 1.4rem;
                    padding-left: 1rem;

                    &.img-bg {
                        background: url("../images/home_rectangle_r.png");
                        background-size: 100% 100%;
                        background-repeat: no-repeat;
                    }

                    img {
                        width: 2rem;
                        height: 2rem;
                    }
                }

                .r-arrow {
                    width: 2rem;
                    height: 2rem;
                    margin-left: .2rem;
                }
            }
        }

        .bottom-list {
            position: relative;
            margin-top: 1rem;
            padding: .4rem 1.2rem;
            border-radius: .8rem;
            background-color: #2c2c30;

            .help-btn {
                position: absolute;
                width: 2rem;
                height: 2rem;
                top: .2rem;
                right: .2rem;
            }

            ul {
                @include flex-center-start();
                flex-wrap: wrap;

                li {
                    width: 50%;
                    height: 2rem;
                    line-height: 2rem;

                    .name {
                        font-size: 1rem;
                        color: #797979;
                    }

                    .num {
                        margin-left: .8rem;
                        font-size: 1.2rem;
                        color: #fff;
                    }

                    .unit {
                        margin-left: .8rem;
                        color: #bdbdbd;
                    }
                }
            }
        }
    }

    .home-redeem-pledge {
        margin-top: 1.2rem;

        .home-tab-box {
            @include flex-center-between();
            height: 5rem;
            line-height: 5rem;
            font-size: 1.4rem;

            .item {
                @include flex-center-center();
                flex: 1;
                text-align: center;
                color: #ffffff;
                font-size: 1.4rem;
                font-weight: bold;

                img {
                    width: 3rem;
                    height: 3rem;
                }

                .name {
                    margin-left: .4rem;
                }

                &:nth-child(1) {
                    border-radius: 2rem 0 0 0;
                    margin-top: -2px;
                    margin-left: -2px;

                    &.active {
                        border-bottom: 2px solid #626262;
                        border-right: 2px solid #aaaaaa;
                        box-shadow: inset -2px 1px 4px #00000080;
                        ;
                    }
                }

                &:nth-child(2) {
                    border-radius: 0 2rem 0 0;
                    margin-top: -2px;
                    margin-right: -2px;

                    &.active {
                        border-bottom: 2px solid #626262;
                        border-left: 2px solid #aaaaaa;
                    }
                }

                &.active {
                    position: relative;
                    color: #919191;
                    background: linear-gradient(to bottom, #4b4b4b 0, #1c1c1c 100%);
                    filter: grayscale(1);
                }
            }
        }

        .form-box {
            .approve-box {
                padding: 1rem 2rem 1rem 3rem;
                @include flex-center-start();
                font-size: 1rem;
                color: #797979;

                .left-box {
                    .name {
                        font-size: 1rem;
                    }

                    .value {
                        margin-left: .4rem;
                        font-size: 1.6rem;
                        color: #ea991a;
                    }
                }

                .right-box {
                    @include flex-center-center();
                    font-size: 1rem;
                }
            }

            .input-box {
                @include flex-center-start();
                margin: 0 2rem;
                border-radius: 2rem;
                border-bottom: 1px solid #383838;

                input {
                    flex: 1;
                    height: 4rem;
                    border-radius: 2rem 0 0 2rem;
                    padding: 0 1rem;
                    border: none;
                    background: #131313;
                    outline: none;
                    box-shadow: inset 2px 0 4px 1px #000000;

                    &::placeholder {
                        font-size: 1rem;
                        color: #bdbdbd;
                    }
                }

                .btn {
                    width: 5rem;
                    height: 4rem;
                    padding-right: 1rem;
                    line-height: 4rem;
                    border-radius: 0 2rem 2rem 0;
                    text-align: center;
                    font-size: 1.2rem;
                    color: #b4b4b4;
                    background: linear-gradient(to bottom, #686868 0, #4e4e4e 20%, #3f3f3f 80%, #2b2b2b 100%);
                }
            }

            .submit-box {
                @include flex-center-center();
                padding: .2rem;

                .btn {
                    @include flex-center-center();
                    flex-direction: column;
                    width: 14rem;
                    height: 6rem;
                    background: url("../images/home_btn.png");
                    background-size: 100% 100%;
                    background-repeat: no-repeat;

                    .title {
                        font-size: 1.6rem;
                        font-weight: bold;
                        color: #FFF0E2;
                        text-shadow: 0 2px 2px #a66500;
                    }
                }
            }
        }
    }

    .home-overview {
        position: relative;
        margin-top: 1.2rem;
        border-radius: 2rem;
        aspect-ratio: 2/1;
        overflow: hidden;

        .banner {
            width: 100%;
            height: 100%;
        }

        .title-box {
            @include flex-center-center();
            position: absolute;
            height: 3rem;
            line-height: 3rem;
            padding: 0 2rem 0 1.2rem;
            border-radius: 0 0 3rem 0;
            background: linear-gradient(to bottom, #686868 0, #4e4e4e 20%, #3f3f3f 80%, #2b2b2b 100%);

            img {
                width: 2.2rem;
                height: 2.2rem;
            }

            .name {
                margin-left: .4rem;
                font-size: 1.4rem;
                font-weight: bold;
            }
        }

        .overview {
            position: absolute;
            padding: 1rem;
            right: 0;
            bottom: 0;
            left: 0;
            font-size: 1rem;
            background-color: rgba(0, 0, 0, .6);
        }
    }
}

// 签到
.check-in-content {
    .days-list-box {
        ul {
            @include flex-center-start();
            flex-wrap: wrap;

            .item {
                width: 25%;
                padding: .4rem;
                box-sizing: border-box;

                .item-box {
                    @include flex-center-center();
                    flex-direction: column;
                    border-radius: .6rem;
                    border: 1px solid #494949;
                    background-color: #3a3a3a;

                    .hat {
                        img {
                            width: 5rem;
                            height: 3.2rem;
                        }
                    }

                    .num {
                        height: 2rem;
                        line-height: 2rem;
                        font-size: 1rem;
                        color: #7d7d7d;
                    }

                    .title {
                        height: 2rem;
                        line-height: 1.1rem;
                        font-size: 1rem;
                        color: #7d7d7d;
                    }

                    &.before {
                        border: 1px solid #fff;
                        background-color: #d79e17;

                        .num,
                        .title {
                            color: #fff;
                        }
                    }

                    &.active {
                        border: 1px solid #fff;

                        .num,
                        .title {
                            color: #fff;
                        }
                    }
                }
            }
        }
    }
    .btn-box{
        margin-top: 2rem;
        text-align: center;
        .btn{
            margin: 0 auto;
            width: 16rem;
            height: 6rem;
            padding: 0;
            outline: none;
            line-height: 5.4rem;
            text-align: center;
            font-size: 1.4rem;
            font-weight: bold;
            background: url(../images/combine_btn.png);
            background-size: 100% 100%;
            background-repeat: no-repeat;
            color: #864703;
            text-shadow: 0 1px 0 #ffebb0;
        }
    }
}